<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Spring 3 MVC Series - Contact Manager</title>
    </head>
    <body>
        <c:set var="root" value="${pageContext.request.contextPath}"/>
        <h1>Contact list</h1>
        <ul>
            <c:forEach items="${contactList}" var="con">
                <li>
                    <c:out value="${con.firstname}"/>, <c:out value="${con.lastname}"/>
                </li>
            </c:forEach>
        </ul>
        <a href="${root}/contact/create">Go to ADD</a>
    </body>
</html>
